//
//  YNSessionMessageManager.h
//  Messenger
//
//  Created by yineng on 2019/8/20.
//  Copyright © 2019 YN-APP-iOS. All rights reserved.
//

#import "XMPPModule.h"

@class YNMessage;

#define openfireDomainName @"im.yineng.com.cn"

NS_ASSUME_NONNULL_BEGIN

@interface YNSessionMessageManager : XMPPModule

//反正就是进入房间失败了，终止进入
@property(nonatomic,copy)void (^joinRoomFailBlock)(NSString*errorMessage);
//进入房间成功
@property(nonatomic,copy)void (^joinRoomSuccessBlock)();
//创建房间时获取房间内人员消息的人员id回调
@property(nonatomic,copy)void (^inRoomUserBlock)(NSString*userId);

@property(nonatomic,copy)NSString*roomId;

-(void)sendPresenceJoinTRTCRoom:(NSString*)roomId;

-(void)sendMessageWith:(NSString*)body toUserId:(NSString*)toUserId message:(YNMessage*)message netConnect:(BOOL)netConnect;

-(void)sendMessageChangeSubjectSpeakIds:(NSArray<NSDictionary*>*)speaks;
@end

NS_ASSUME_NONNULL_END
